package com.jy.event.dao;


import com.jy.event.domain.PaymentStatus;
import com.jy.event.domain.WebRecharge;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/10/21.
 */
public interface WebRechargeDao extends CrudRepository<WebRecharge, String> {

    /**
     * 获取时间段内所有支付中的支付数据
     *
     * @param status
     * @return
     */
    List<WebRecharge> findListByStatusAndUpdateTimeBetween(PaymentStatus status, Date from, Date to);


    /**
     * 获取时间段内所有支付中的支付数据
     *
     * @param status
     * @return
     */
    List<WebRecharge> findListByStatusAndSynchro(PaymentStatus status, Boolean synch);





}
